package com.aiit.dao;

import com.aiit.pojo.LingJian;
import com.aiit.pojo.NameValue;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ILingJianDao extends BaseMapper<LingJian> {
    @Select("select * from t_lingjian where number < 500 and deleted=1")
    List<LingJian> selectList2();
    @Select("select name ,number value from t_lingjian WHERE deleted=1")
    List<NameValue> queryAllNN();
}
